package com.example.carbonbackend.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 挂牌信息表
 * @TableName listinginfo
 */
@TableName(value ="listinginfo")
@Data
public class ListingInfo implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司id
     */
    @TableField(value = "company_id")
    private String companyId;

    /**
     * 标价
     */
    @TableField(value = "listing_price")
    private Double listingPrice;

    /**
     * 总数量
     */
    @TableField(value = "listing_amount")
    private Double listingAmount;

    /**
     * 剩余数量
     */
    @TableField(value = "residual_amount")
    private Double residualAmount;

    /**
     * 卖方地址
     */
    @TableField(value = "seller_address")
    private String sellerAddress;

    /**
     * 最高价
     */
    @TableField(value = "max_price")
    private Double maxPrice;

    /**
     * 最低价
     */
    @TableField(value = "min_price")
    private Double minPrice;

    /**
     * 交易方式0挂牌1定向2群组
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 起始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}